package com.qizhu.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 口袋神婆商品（问题）
 * </p>
 *
 * @author 张权
 * @since 2017-04-18
 */
@TableName("kdsp_item")
public class Item extends Model<Item> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(type = IdType.UUID,value="item_id")
	private String itemId;
    /**
     * 问题名称
     */
	private String name;
    /**
     * 问题价格
     */
	private Integer price;
    /**
     * 测算次数
     */
	@TableField("play_times")
	private Integer playTimes;
    /**
     * 所属分类
     */
	@TableField("cat_id")
	private String catId;
    /**
     * 是否审核通过
     */
	@TableField("is_audit")
	private Integer isAudit;
    /**
     * 对应答案的标记
     */
	private Integer tag;


	public String getItemId() {
		return itemId;
	}

	public void setItemId(String itemId) {
		this.itemId = itemId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getPrice() {
		return price;
	}

	public void setPrice(Integer price) {
		this.price = price;
	}

	public Integer getPlayTimes() {
		return playTimes;
	}

	public void setPlayTimes(Integer playTimes) {
		this.playTimes = playTimes;
	}

	public String getCatId() {
		return catId;
	}

	public void setCatId(String catId) {
		this.catId = catId;
	}

	public Integer getIsAudit() {
		return isAudit;
	}

	public void setIsAudit(Integer isAudit) {
		this.isAudit = isAudit;
	}

	public Integer getTag() {
		return tag;
	}

	public void setTag(Integer tag) {
		this.tag = tag;
	}

	@Override
	protected Serializable pkVal() {
		return this.itemId;
	}

}
